package com.sq.partner.manager.dao.impl;

import java.sql.SQLException;
import java.util.List;
import java.util.Map;

import org.springframework.stereotype.Repository;

import com.sq.partner.manager.dao.INlifeCoreRiskDao;
import com.sq.partner.manager.mybatis.model.NlifeCoreProdRisk;
import com.sq.partner.manager.mybatis.model.NlifeCoreRisk;

@Repository
public class NlifeCoreRiskDaoImpl extends BaseDaoImpl implements
		INlifeCoreRiskDao {

	@Override
	public void insertCoreRisks(List<NlifeCoreRisk> list) throws Exception {
		this.batchInsert("insertNlifeCoreRisk", list);	
		
	}

	@Override
	public NlifeCoreRisk queryCoreRiskById(String coreRiskCode) throws SQLException {
		NlifeCoreRisk nlifeCoreRisk = (NlifeCoreRisk)this.query("queryNlifeCoreRiskById",coreRiskCode);

		return nlifeCoreRisk;
	}

	@Override
	public void updateNlifeCoreRiskInter(Map<Object,Object> map) throws Exception {
		this.update("updateNlifeCoreRiskInter",map);
	}
}
